// resume pause
let net = require("net")
let path = require("path")
let ws = require('fs').createWriteStream(path.join(__dirname, 'msg.txt'))
let server = net.createServer(function(socket){
    socket.pause()
    setTimeout(function(){
        socket.pipe(ws)
    }, 10*1000)
})
server.listen(8080)

